package com.wanmait.deliverymangementsystem.service.test;

import com.wanmait.deliverymangementsystem.pojo.Runner;
import org.junit.jupiter.api.Test;
import org.springframework.boot.test.context.SpringBootTest;

import javax.annotation.Resource;

@SpringBootTest
public class RunnerService {
    @Resource
    private com.wanmait.deliverymangementsystem.service.RunnerService runnerService;
    @Test
    public  void logintest(){
        Runner runner =new Runner();
        runner.setPhone_number("13044087130");
        runner.setPassword("123456");
       runner= runnerService.Login(runner);
        System.out.println(runner.toString());
    }
    @Test
    public void findallTest(){
        System.out.println(runnerService.runnerList());
    }

}
